<template>
<div class="box">
  <el-row>
    <el-col :span="24">
      <el-card shadow="hover">
        <div slot="header" class="clearfix">
          <span>基础用法</span>
        </div>
        <el-row>
          <el-button size="medium">默认按钮</el-button>
          <el-button size="medium" type="primary">主要按钮</el-button>
          <el-button size="medium" type="success">成功按钮</el-button>
          <el-button size="medium" type="info">信息按钮</el-button>
          <el-button size="medium" type="warning">警告按钮</el-button>
          <el-button size="medium" type="danger">危险按钮</el-button>
        </el-row>

        <el-row>
          <el-button size="medium" plain>朴素按钮</el-button>
          <el-button size="medium" type="primary" plain>主要按钮</el-button>
          <el-button size="medium" type="success" plain>成功按钮</el-button>
          <el-button size="medium" type="info" plain>信息按钮</el-button>
          <el-button size="medium" type="warning" plain>警告按钮</el-button>
          <el-button size="medium" type="danger" plain>危险按钮</el-button>
        </el-row>

        <el-row>
          <el-button size="medium" round>圆角按钮</el-button>
          <el-button size="medium" type="primary" round>主要按钮</el-button>
          <el-button size="medium" type="success" round>成功按钮</el-button>
          <el-button size="medium" type="info" round>信息按钮</el-button>
          <el-button size="medium" type="warning" round>警告按钮</el-button>
          <el-button size="medium" type="danger" round>危险按钮</el-button>
        </el-row>

        <el-row>
          <el-button size="medium" icon="el-icon-search" circle></el-button>
          <el-button size="medium" type="primary" icon="el-icon-edit" circle></el-button>
          <el-button size="medium" type="success" icon="el-icon-check" circle></el-button>
          <el-button size="medium" type="info" icon="el-icon-message" circle></el-button>
          <el-button size="medium" type="warning" icon="el-icon-star-off" circle></el-button>
          <el-button size="medium" type="danger" icon="el-icon-delete" circle></el-button>
        </el-row>
      </el-card>
    </el-col>
    <el-col :span="24">
      <el-card shadow="hover">
        <div slot="header" class="clearfix">
          <span>禁用状态</span>
        </div>
        <el-row>
          <el-button disabled size="medium">默认按钮</el-button>
          <el-button disabled size="medium" type="primary">主要按钮</el-button>
          <el-button disabled size="medium" type="success">成功按钮</el-button>
          <el-button disabled size="medium" type="info">信息按钮</el-button>
          <el-button disabled size="medium" type="warning">警告按钮</el-button>
          <el-button disabled size="medium" type="danger">危险按钮</el-button>
        </el-row>

        <el-row>
          <el-button disabled size="medium" plain>朴素按钮</el-button>
          <el-button disabled size="medium" type="primary" plain>主要按钮</el-button>
          <el-button disabled size="medium" type="success" plain>成功按钮</el-button>
          <el-button disabled size="medium" type="info" plain>信息按钮</el-button>
          <el-button disabled size="medium" type="warning" plain>警告按钮</el-button>
          <el-button disabled size="medium" type="danger" plain>危险按钮</el-button>
        </el-row>
      </el-card>
    </el-col>
    <el-col :span="24">
      <el-card shadow="hover">
        <div slot="header" class="clearfix">
          <span>文字按钮</span>
        </div>
        <el-button type="text" size="medium">文字按钮</el-button>
        <el-button type="text" disabled size="medium">文字按钮</el-button>
      </el-card>
    </el-col>
    <el-col :span="24">
      <el-card shadow="hover">
        <div slot="header" class="clearfix">
          <span>图标按钮</span>
        </div>
        <el-button size="medium" type="primary" icon="el-icon-edit"></el-button>
        <el-button size="medium" type="primary" icon="el-icon-share"></el-button>
        <el-button size="medium" type="primary" icon="el-icon-delete"></el-button>
        <el-button size="medium" type="primary" icon="el-icon-search">搜索</el-button>
        <el-button size="medium" type="primary">上传<i class="el-icon-upload el-icon--right"></i></el-button>
      </el-card>
    </el-col>
    <el-col :span="24">
      <el-card shadow="hover">
        <div slot="header" class="clearfix">
          <span>自定义图标按钮</span>
        </div>
        <el-button size="medium" type="primary" icon="ri-home-4-line"></el-button>
        <el-button size="medium" type="primary" icon="ri-hospital-line"></el-button>
        <el-button size="medium" type="primary" icon="ri-ancient-gate-line"></el-button>
        <el-button size="medium" type="primary" icon="ri-bar-chart-grouped-line"></el-button>
        <el-button size="medium" type="primary"><i class="ri-customer-service-line"></i></el-button>
      </el-card>
    </el-col>
    <el-col :span="24">
      <el-card shadow="hover">
        <div slot="header" class="clearfix">
          <span>按钮组</span>
        </div>
        <el-button-group>
          <el-button size="medium" type="primary" icon="el-icon-arrow-left">上一页</el-button>
          <el-button size="medium" type="primary">下一页<i class="el-icon-arrow-right el-icon--right"></i></el-button>
        </el-button-group>
        <el-button-group>
          <el-button size="medium" type="primary" icon="el-icon-edit"></el-button>
          <el-button size="medium" type="primary" icon="el-icon-share"></el-button>
          <el-button size="medium" type="primary" icon="el-icon-delete"></el-button>
        </el-button-group>
      </el-card>
    </el-col>
    <el-col :span="24">
      <el-card shadow="hover">
        <div slot="header" class="clearfix">
          <span>加载中</span>
        </div>
        <el-button type="primary" size="medium" :loading="true">加载中</el-button>
      </el-card>
    </el-col>
    <el-col :span="24">
      <el-card shadow="hover">
        <div slot="header" class="clearfix">
          <span>不同尺寸</span>
        </div>
        <el-row>
          <el-button>默认按钮</el-button>
          <el-button size="medium">中等按钮</el-button>
          <el-button size="small">小型按钮</el-button>
          <el-button size="mini">超小按钮</el-button>
        </el-row>
        <el-row>
          <el-button round>默认按钮</el-button>
          <el-button size="medium" round>中等按钮</el-button>
          <el-button size="small" round>小型按钮</el-button>
          <el-button size="mini" round>超小按钮</el-button>
        </el-row>
      </el-card>
    </el-col>
  </el-row>
</div>
</template>

<script>
export default {
  name: "button"
}
</script>

<style scoped lang="scss">
.clearfix{
  font-size: 14px;
}
.el-col{
  margin-bottom: 20px;
}
.el-button-group{
  margin-right: 20px;
}
</style>
